Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sry fo stupid q.. can I use ark to get mail? #343

Closed
GoogleCodeExporter opened this issue Mar 20, 2015 · 5 comments
Closed

Sry fo stupid q.. can I use ark to get mail? #343

GoogleCodeExporter opened this issue Mar 20, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

Downloaded from > googlecode 


What steps will reproduce the problem?
1. Go to mailbox
2. Open mailbox in arkinv
3. Clicking on items in mail

What is the expected output? What do you see instead?

Nothing happens.. I have many mail's & I want to use ark to get only few 
intems without search from mail to mail..  so I want to clich on item & 
get it in my bag.. is it possible?

What version of the product are you using? On what operating system?

Win7, last ver of ArkInv

Please provide any additional information below.

Many tnx for this addon, it's THE BEST for ppls with 10 char's +8 guild 
banks just for me.. :)

Original issue reported on code.google.com by 128...@gmail.com on 20 Mar 2010 at 6:12

@GoogleCodeExporter
Copy link
Author

sorry, no.  the mail window is read only at the moment.

Original comment by arkaye...@gmail.com on 22 Mar 2010 at 7:37

  • Changed state: Closed
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

It takes a few simple changes to make it so that you can take mail from the 
ArkInventory Mail frame. Other changes are needed to make the ArkInventory Mail 
frame appear when the standard mail frame is opened.


In ArkInventory.lua, make the following two changes:

- add a line in the definition of "[ArkInventory.Const.Location.Mail] = {"

            template = "ARKINV_TemplateButtonMailItem",


- add a function:

function ArkInventory.Frame_Mail_Item_OnMouseUp( frame, button )

    if ArkInventory.ValidFrame( frame, true ) == false then
        return
    end

    local loc_id = frame.ARK_Data.loc_id
    local i = ArkInventory.Frame_Item_GetDB( frame )

--  print( "Mail Mouseup msg:" .. (i.msg_id or "nil") .. " attachment:" .. 
(i.attachment_id or "nil") .. " link:" .. (i.h or "nil") )

    if IsModifierKeyDown( ) then

        if i.h then
            HandleModifiedItemClick( i.h )
        end

    elseif ArkInventory.Global.Mode.Edit then
--      print("edit")
        ArkInventory.MenuItemOpen( frame )
    else
--      print("taking item")
        TakeInboxItem(i.msg_id, i.attachment_id)
    end

end


In ArkInventory.xml, add a button:

    <Button virtual="true" name="ARKINV_TemplateButtonMailItem" inherits="ARKINV_TemplateButtonItem" hidden="true">

        <Scripts>

            <OnClick>
                -- do nothing
            </OnClick>

            <OnDragStart>
                -- do nothing
            </OnDragStart>

            <OnReceiveDrag>
                -- do nothing
            </OnReceiveDrag>

            <OnMouseUp>
                ArkInventory.Frame_Mail_Item_OnMouseUp( self, button )
            </OnMouseUp>

        </Scripts>

    </Button>


In ArkInventoryStorage.lua, make the following changes to ArkInventory.ScanMail:

- move the following to before "if not bag.slot[slot_id] then"

                    local h = GetInboxItemLink( msg_id, attachment_id )

- add the following lines after "slot_id = slot_id,"

                            msg_id = msg_id,
                            attachment_id = attachment_id,

- add the following lines to before the "end" statement of "if not 
bag.slot[slot_id] then"


--                      print("Added loc:" .. loc_id .. " bag:" .. bag_id .. " slot:" .. 
slot_id .. " msg:" .. msg_id .. " attachment:" .. attachment_id .. " link:" .. 
(h or "nil"))
                    else
                        if bag.slot[slot_id].msg_id == msg_id and bag.slot[slot_id].attachment_id == attachment_id then
--                          print("Skipped loc:" .. loc_id .. " bag:" .. bag_id .. " slot:" .. 
slot_id .. " msg:" .. msg_id .. " attachment:" .. attachment_id .. " link:" .. 
(h or "nil"))
                        else
--                          print("Skipped loc:" .. loc_id .. " bag:" .. bag_id .. " slot:" .. 
slot_id .. " msg:" .. msg_id .. " attachment:" .. attachment_id .. " link:" .. 
(h or "nil")
--                              .. " oldmsg:" .. bag.slot[slot_id].msg_id .. " oldattachment:" .. 
bag.slot[slot_id].attachment_id)
                            bag.slot[slot_id].msg_id = msg_id
                            bag.slot[slot_id].attachment_id = attachment_id
                        end

Original comment by jo...@shaw.ca on 4 Dec 2012 at 3:45

@GoogleCodeExporter
Copy link
Author

Issue 586 has been merged into this issue.

Original comment by arkaye...@gmail.com on 15 Dec 2012 at 9:40

@GoogleCodeExporter
Copy link
Author

thinking about it

Original comment by arkaye...@gmail.com on 15 Dec 2012 at 9:41

  • Changed state: Accepted

@arkayenro
Copy link
Owner

added in 3.06.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants